package com.shawn.dubbo.api;

import com.shawn.commons.utils.CommentType;
import com.shawn.model.mongo.Comment;
import com.shawn.model.mongo.Movement;
import com.shawn.model.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentsApi {
    Boolean whetherLikeOrLove(Long userId, String id, CommentType commentType);

    PageResult<Comment> getAllComments(String id, Integer page, Integer pageSize,CommentType commentType);

    Integer saveComments(Comment commentEntity);

    List<Comment> getAllLikeOrLoveComments(Long id);

    Integer commentWhetherLike(String id, int isLike);

    PageResult<Comment> getAllCommentsByUserId(Long userId, Integer page, Integer pageSize, CommentType commentType);
}
